public String get<%=name%>Message(String code)
{
    String message = String.Empty;
    switch (code)
    {
        <% for(let i=1;i< data.length;i++ ){%>
        case "<%=data[i][0]%>":
            message = "<%=data[i][1]%>";
            break;
        <%}%>
    }
    return message;
}